/*n0IoSIXrdZnBuHXQBSyCssqvyxn8bLQeZJ2X6iKe4V13uYMYMQ3RRQ+z0dZ2JX4w*/
/*
 * @Author: xiahui
 * @PageInfo: 影像扫描
 * @Date: 2019-04-25 13:39:05
 * @Last Modified by: zhr
 * @Last Modified time: 2021-01-18 10:42:02
 */
import { PAGECODE, AREA, FIELDS } from '../../constance';
import { SCMImageScan } from 'scmpub/scmpub/components/Image';
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';

export default function(props) {
	// let openbillid = props.getUrlParam('id');
	let openbillid = props.form.getFormItemsValue(AREA.cardFormId, FIELDS.pk_ct_pu).value;
	let billdata = props.createMasterChildData(PAGECODE.cardPagecode, AREA.cardFormId, AREA.cardTableId);
	let data = {};
	data.billId = openbillid;
	data.billType = props.form.getFormItemsValue(AREA.cardFormId, FIELDS.vtrantypecode).value;
	data.tranTypeId = billdata.head[AREA.cardFormId].rows[0].values[FIELDS.vtrantypecode].value;
	data.pk_org = billdata.head[AREA.cardFormId].rows[0].values[FIELDS.pk_org].value;
	data.pk_org_name = billdata.head[AREA.cardFormId].rows[0].values[FIELDS.pk_org].display;
	//影像所需 FieldMap
	data.pk_billtype = 'Z2';
	data.billDate = billdata.head[AREA.cardFormId].rows[0].values[FIELDS.dbilldate].value;
	data.vbillcode = billdata.head[AREA.cardFormId].rows[0].values[FIELDS.vbillcode].value;
	data.cash = billdata.head[AREA.cardFormId].rows[0].values[FIELDS.ntotalorigmny].value;
	data.imageDisableHint = getLangByResId(this, '4004PURDAILY-000067'); //"影像管理模块没有启用！"  add by congke
	SCMImageScan.call(this, props, data);
}

/*n0IoSIXrdZnBuHXQBSyCssqvyxn8bLQeZJ2X6iKe4V13uYMYMQ3RRQ+z0dZ2JX4w*/